package cn.iocoder.yudao.module.wine.controller.app.messageboard.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "用户 APP - 用户留言板 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppMessageBoardRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "16186")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "发送者id", requiredMode = Schema.RequiredMode.REQUIRED, example = "25163")
    @ExcelProperty("发送者id")
    private Long sendId;

    @Schema(description = "接收者id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23525")
    @ExcelProperty("接收者id")
    private Long receiveId;

    @Schema(description = "留言内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("留言内容")
    private String content;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")

    private LocalDateTime createTime;

    @Schema(description = "是否已读 1是2否", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否已读 1是2否")
    private Integer isRead;

    @ExcelProperty("聊天id")
    @Schema(description = "聊天id", example = "25163")
    private Long chatId;

    @ExcelProperty("用户头像")
    @Schema(description = "用户头像", example = "用户头像")
    private String avatar;

    @ExcelProperty("用户昵称")
    @Schema(description = "用户昵称", example = "用户昵称")
    private String nickname;

    /**
     * 类型ID:0--系统，1--供求，2--投诉，3--离职，4--会话
     */
    @ExcelProperty("类型ID")
    @Schema(description = "类型ID", example = "25163")
    private Integer typeId;
    /**
     *  来源信息id：0--系统，或会话
     */
    @ExcelProperty("来源信息id")
    @Schema(description = "来源信息id", example = "25163")
    private Long infoId;
}
